package com.fss.product1.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fss.common.annotation.Excel;
import com.fss.common.core.domain.BaseEntity;

/**
 * 农产品产品对象 product
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
public class Product1 extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品ID */
    private Long productId;

    /** 品类ID，关联category */
    @Excel(name = "品类ID，关联category")
    private Long categoryId;

    /** 用户ID，关联用户表 */
    @Excel(name = "用户ID，关联用户表")
    private Long userId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品价格 */
    @Excel(name = "产品价格")
    private BigDecimal price;

    /** 产品状态（0正常 1停用） */
    @Excel(name = "产品状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 销量 */
    @Excel(name = "销量")
    private Long sales;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 发货地 */
    @Excel(name = "发货地")
    private String originLocation;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private String productType;

    /** 货品等级 */
    @Excel(name = "货品等级")
    private String grade;

    /** 产品大小 */
    @Excel(name = "产品大小")
    private String size;

    /** 单份重量） */
    @Excel(name = "单份重量）")
    private String unitWeight;

    /** 产品介绍 */
    @Excel(name = "产品介绍")
    private String description;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setSales(Long sales) 
    {
        this.sales = sales;
    }

    public Long getSales() 
    {
        return sales;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setOriginLocation(String originLocation) 
    {
        this.originLocation = originLocation;
    }

    public String getOriginLocation() 
    {
        return originLocation;
    }
    public void setProductType(String productType) 
    {
        this.productType = productType;
    }

    public String getProductType() 
    {
        return productType;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setSize(String size) 
    {
        this.size = size;
    }

    public String getSize() 
    {
        return size;
    }
    public void setUnitWeight(String unitWeight) 
    {
        this.unitWeight = unitWeight;
    }

    public String getUnitWeight() 
    {
        return unitWeight;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("categoryId", getCategoryId())
            .append("userId", getUserId())
            .append("productName", getProductName())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("sales", getSales())
            .append("unit", getUnit())
            .append("originLocation", getOriginLocation())
            .append("productType", getProductType())
            .append("grade", getGrade())
            .append("size", getSize())
            .append("unitWeight", getUnitWeight())
            .append("description", getDescription())
            .toString();
    }
}
